<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>管理导航区</title>
<link rel="stylesheet" href="${rc.contextPath }/css/common.css" type="text/css" />
<script type="text/javascript" src="${rc.contextPath}/js/jquery/jquery-1.8.2.js"></script>
</head>
<script type="text/javascript">
	var preClassName = "man_nav_1";
	function list_sub_nav(Id, sortname) {
		if (preClassName != "") {
			getObject(preClassName).className = "bg_image";
		}
		if (getObject(Id).className == "bg_image") {
			getObject(Id).className = "bg_image_onclick";
			preClassName = Id;
			showInnerText(Id);
			window.top.frames['leftFrame'].outlookbar.getbytitle(sortname);
			window.top.frames['leftFrame'].outlookbar.getdefaultnav(sortname);
		}
	}

	function showInnerText(Id) {
		var switchId = parseInt(Id.substring(8));
		var showText = "对不起，没有信息！";
		switch (switchId) {
		case 1:
			showText = "EMSP CMS 管理系统";
			break;
		case 2:
			showText = "系统设置";
			break;
		case 3:
			showText = "网站管理";
			break;
		/* case 4:
			showText = "模版管理";
			break; */
		case 5:
			showText = "媒体库";
			break;
		case 6:
			showText = "栏目管理";
			break;
		case 7:
			showText = "文章管理";
			break;
		case 8:
			showText = "用户管理";
			break;
		case 9:
			showText = "日志管理";
			break;
		}
		getObject('show_text').innerHTML = showText;
		//getObject('show_text').innerHTML = sortname;
	}
	//获取对象属性兼容方法
	function getObject(objectId) {
		if (document.getElementById && document.getElementById(objectId)) {
			// W3C DOM
			return document.getElementById(objectId);
		} else if (document.all && document.all(objectId)) {
			// MSIE 4 DOM
			return document.all(objectId);
		} else if (document.layers && document.layers[objectId]) {
			// NN 4 DOM.. note: this won't find nested layers
			return document.layers[objectId];
		} else {
			return false;
		}
	}
</script>
<body background="#3c3d41">
	<div id="nav">
		<ul>
			<li id="man_nav_1" onclick="list_sub_nav(id,'管理首页')"
				class="bg_image_onclick">管理首页</li>
			<li id="man_nav_2" onclick="list_sub_nav(id,'系统设置')"  class="bg_image" style="display: none;">系统设置</li> 
			<li id="man_nav_3" onclick="list_sub_nav(id,'网站管理')" class="bg_image" style="display: none;">网站管理</li>
			<li id="man_nav_6" onclick="list_sub_nav(id,'栏目管理')" class="bg_image" style="display: none;">栏目管理</li>
			<li id="man_nav_7" onclick="list_sub_nav(id,'文章管理')" class="bg_image" style="display: none;">文章管理</li>
			<!-- <li id="man_nav_4" onclick="list_sub_nav(id,'模版管理')" class="bg_image" style="display: none;">模版管理</li> -->
			<li id="man_nav_5" onclick="list_sub_nav(id,'媒体库')" class="bg_image" style="display: none;">&nbsp;&nbsp;媒体库&nbsp;</li>
			<li id="man_nav_8" onclick="list_sub_nav(id,'用户管理')" class="bg_image" style="display: none;">用户管理</li>
			<li id="man_nav_9" onclick="list_sub_nav(id,'日志管理')" class="bg_image" style="display: none;">日志管理</li>
		</ul>
	</div>
	<div id="sub_info">
		&nbsp;&nbsp;<img src="${rc.contextPath }/images/hi.gif" />&nbsp;<span
			id="show_text">欢迎使用 多业务内容管理系统</span>
	</div>
</body>
</html>